package stx.com.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import stx.com.dao.UserDao;
import stx.com.entity.TUser;

@Service
public class UserServiceImp implements UserService {

	@Resource
	private UserDao userDao;
	
	@Override
	public boolean uRegist(TUser user) {
		return userDao.regist(user);
	}

	@Override
	public boolean uLogin(TUser user) {
		return userDao.login(user);
	}

	@Override
	public boolean uUpdate(TUser user) {
		return userDao.update(user);
	}

	@Override
	public TUser uCheck(TUser user) {
		return userDao.check(user);
	}

	public UserDao getUserDao() {
		return userDao;
	}

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

}
